import { useModel } from "umi";

import SendoutGood from "../components/order/SendOutGood";


const useHelperOrder = () => {
    const { setModalVisible, setModalTitle, setModalWidth, setModalComponent, setModalStyle } = useModel("global.modal");


    const openSendoutGoodModal = () => {
        setModalTitle("添加发货信息");
        setModalVisible(true);
        setModalWidth(800);
        setModalComponent(<SendoutGood reloadData={console.log(11)} commodities={[]} />);
    };


    return { openSendoutGoodModal };
};

export default useHelperOrder;
